﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="TaoMember.aspx.cs" Inherits="TaoMember" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .textbox
        {
        	text-align:left;
        }
        .ddlist
        {
        	font-weight:bold;
        }
        .ddlistTT
        {
        	font-weight:bold;
        	text-align:left;
        }
    </style>
</asp:Content>
<asp:Content ID="ContentTimKiem" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:label runat="server" ID="lbComtent">   
        <div id="khungketqua">
            <asp:label runat="server" ID="lbContentTimKiem" >
            <table border="10" cellpadding="6" cellspacing="1" width="100%" style="background-color:White;">
                <tr>
                    <td style="text-align:center; color:Blue;"><h1 style="text-align:center;">Tạo User Mới</h1></td>
                </tr>
                <tr>
                    <td>
                        <table id="Detail" width="80%">
                            <tr>
                                <td style="text-align:left" >
                                Tên đăng nhập :
                                </td>
                                <td style="text-align:left !important;">
                                    <asp:TextBox ID="txtTenDanhNhap" runat="server" Width="245px" MaxLength="50" 
                                        CssClass="textbox"></asp:TextBox>
                                    <asp:Label ID="lbThongBaoLoiTenDangNhap" runat="server" ForeColor="Red" Visible="false" Text="Ten dang nhap da ton tai"></asp:Label>
                                    <asp:RequiredFieldValidator ID="vrTenDangNhap" runat="server" 
                                        ControlToValidate="txtTenDanhNhap" ErrorMessage="abc">*</asp:RequiredFieldValidator>                                    
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left">
                                    Mật khẩu 
                                </td>
                                
                                <td style="text-align:left !important;">
                                    <asp:TextBox ID="txtMatKhau" runat="server" Width="200px" TextMode="Password" 
                                        MaxLength="30" CssClass="textbox"></asp:TextBox>
                                     
                                   
                                    <asp:RequiredFieldValidator ID="vrMatKhau" runat="server" 
                                        ControlToValidate="txtMatKhau" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                                </td>
                               
                            </tr>
                            
                              <tr>
                                <td style="text-align:left">Nhắc lại mật khẩu</td>
                                
                                <td style="text-align:left !important;">
                                    <asp:TextBox ID="txtNhacLaiMatKhau" runat="server" Width="200px"
                                        TextMode="Password" MaxLength="30" CssClass="textbox"></asp:TextBox>
                                
                                    <asp:RequiredFieldValidator ID="vrNhacLaiMatKhau" runat="server" 
                                        ControlToValidate="txtNhacLaiMatKhau" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="vcNhacLaiMatKhau" runat="server" 
                                        ControlToCompare="txtMatKhau" ControlToValidate="txtNhacLaiMatKhau" 
                                        ErrorMessage="CompareValidator">Mật khẩu không giống nhau</asp:CompareValidator>
                                
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left">
                                    Mã an toàn
                                </td>
                                <td>
                                    <cc1:CaptchaControl ID="CapchaSecurity" runat="server" CssClass="capchar"/>
                                </td>
                            </tr>
                            
                            <tr>
                                <td style="text-align:left">
                                    Xác nhận mật mã
                                </td>
                                
                                <td style="text-align:left !important;">
                                    <asp:TextBox ID="txtXacNhanMatMa" runat="server" CssClass="textbox"></asp:TextBox>
                                    
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                        ControlToValidate="txtXacNhanMatMa" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                                    
                                    <br />
                                    <asp:CustomValidator ID="FailCode" runat="server" Text="Ma an toan khong chinh xac" Display="Dynamic"></asp:CustomValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >
                                    Họ tên :
                                </td>
                                
                                <td style="text-align:left !important;">
                                    <asp:TextBox ID="txtHoTen" runat="server" Width="245px" MaxLength="35" 
                                        CssClass="textbox"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                        ControlToValidate="txtHoTen" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Ngày sinh :</td>
                                
                                <td>
                                   
                                    <asp:DropDownList ID="ddlNgay" runat="server" Width="80px" Height="25px" 
                                        CssClass="ddlist"></asp:DropDownList>
                                    <asp:Label ID="Label1" Text="/" runat="server" Width="20px" Height="25px" Font-Bold="true"></asp:Label>
                                    
                                    <asp:DropDownList ID="ddlThang" runat="server" Width="80px" Height="25px" 
                                        CssClass="ddlist"></asp:DropDownList>
                                    <asp:Label ID="Label2" Text="/" runat="server" Width="20px" Height="25px" Font-Bold="true"></asp:Label>
                                    
                                    <asp:DropDownList ID="ddlNam" runat="server" Width="80px" Height="25px" 
                                        CssClass="ddlist"></asp:DropDownList>
                                    
                                    
                                    <asp:CompareValidator ID="CompareValidator2" runat="server" 
                                        ControlToValidate="ddlNgay" ErrorMessage="CompareValidator" 
                                        Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                                    <asp:CompareValidator ID="CompareValidator3" runat="server" 
                                        ControlToValidate="ddlThang" ErrorMessage="CompareValidator" 
                                        Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                                    <asp:CompareValidator ID="CompareValidator4" runat="server" 
                                        ControlToValidate="ddlNam" ErrorMessage="CompareValidator" 
                                        Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left">
                                    Giới tính</td>
                                
                                <td>
                                    <input id="GioiTinhNam" type="radio" name="GioiTinh" runat="server" 
                                       />Nam &nbsp; &nbsp; &nbsp;
                                    <input id="GioiTinhNu" type="radio" name="GioiTinh" runat="server"/>Nữ
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Email :</td>
                                
                                <td style="text-align:left !important;">
                                    <asp:TextBox ID="txtEmail" runat="server" Width="145px" MaxLength="50" 
                                        CssClass="textbox"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                        ControlToValidate="txtEmail" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                        ControlToValidate="txtEmail" ErrorMessage="RegularExpressionValidator" 
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">Email 
                                    không hợp lệ</asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Số điện thoại :</td>
                                <td style="text-align:left !important;">
                                    <asp:TextBox ID="SoDienThoai" runat="server" Width="100%" MaxLength="11"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Tình Trạng User :</td>
                                <td style="text-align:left !important;">
                                    <asp:DropDownList ID="TinhTrangUser" runat="server" Width="80px" Height="25px" 
                                        CssClass="ddlistTT"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Nhóm Thành Viên :</td>
                                <td style="text-align:left !important;">
                                    <asp:DropDownList ID="ddlNhomThanhVien" runat="server" Width="80px" Height="25px" 
                                        CssClass="ddlistTT"></asp:DropDownList>    
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:left" >Số Tiền Trong Tài Khoản :</td>
                                <td style="text-align:left !important;">
                                    <asp:TextBox ID="txtTienTaiKhoan" runat="server" Width="278px" 
                                            CssClass="textbox"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            </asp:label>
        </div>
        <div>
            <table width="100%">
               <tr>
                <td>                    
                    <asp:Button ID="Add" runat="server" Text="Add" OnClick="Add_Click" UseSubmitBehavior="true" Width="90px"/>
                </td>
               </tr>
            </table>
        </div>
        <asp:label runat="server" ID="lbComtentDelete">
        </asp:label>
    </div>
    </asp:label>
</asp:Content>
